import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {FormsModule,ReactiveFormsModule} from '@angular/forms'
import {Routes,RouterModule} from '@angular/router';
import {UserLoginComponent} from "./user-login/user-login.component";
import {ForgetPwdComponent} from "./forget-pwd/forget-pwd.component";
import {UserRegisterComponent} from "./user-register/user-register.component";
import { EqualValidator } from './user-register/directives/equal-validator.directive';
import {ForgetPwdService} from "./forget-pwd/forget-pwd.service";
const userRoutes:Routes=[
  {
    path:'login',
    component:UserLoginComponent
  },
  {
    path: 'forgetpwd',
    component: ForgetPwdComponent
  },
  {
    path:'register',
    component:UserRegisterComponent
  }
]
@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    RouterModule.forChild(userRoutes)
  ],
  declarations: [
    EqualValidator,
    UserLoginComponent,
    ForgetPwdComponent,
    UserRegisterComponent
  ],
  providers:[
    ForgetPwdService
  ]
})
export class UserModule { }
